import type { TMenuInfoReq, TMenuUsedReq } from "@/typing/menu";
import type { TCreateMenuActionReq } from "@/typing/menuAction";
import alovaInstance from "@/utils/request";

export const queryMenuActionList = (id: string) => alovaInstance.Get('/api/menu_action', { params: { id }})
export const addMenuAction = (req: TCreateMenuActionReq) => alovaInstance.Post('/api/menu_action', req)
export const deleteMenuAction = (id: string) => alovaInstance.Delete(`/api/menu_action/${id}`)


